home *** CD-ROM | disk | FTP | other *** search
/ Publication 11 / Publication_11_19xx_-_de_Side_B.d64 / t_s-info imprvd. (.txt) < prev    next >
Commodore BASIC  |  2023-02-26  |  2KB  |  76 lines

  1. 1 rem *********************************
  2. 2 rem * vitals 1541                   *
  3. 3 rem *********************************
  4. 4 rem * will corley                   *
  5. 5 rem * 7551 twilight dr.             *
  6. 6 rem * sacramento, ca                *
  7. 7 rem * 95822                         *
  8. 8 rem *********************************
  9. 9 dc$="":for x=1 to 44:read a:dc$=dc$+chr$(a):next
  10. 10 poke 53280,11:poke 53281,12:print "[147]"
  11. 11 i=512:k$=chr$(0)
  12. 12 print tab(14) "vitals 1541"
  13. 13 print tab(14) "[151][183][183][183][183][183][183][183][183][183][183][183]"
  14. 14 print tab(10)"(c)  by will corley"
  15. 15 input "[151]file to analyze";n$
  16. 16 if len(n$)>16 or n$="" then run
  17. 17 close 15:open 15,8,15,"i":gosub 49:ty$="p":a=1
  18. 18 open 2,8,2,n$+","+ty$+",r"
  19. 19 input#15,e:if e<20 then 26
  20. 20 close 2
  21. 21 if e<>64 then run
  22. 22 if a=1 then ty$="s"
  23. 23 if a=2 then ty$="u"
  24. 24 if a=3 then run
  25. 25 a=a+1:goto 18
  26. 26 get#2,a$:sl=peek(512):get#2,a$:sh=peek(512)
  27. 27 print#15,"m-r" chr$(24) k$ chr$(2)
  28. 28 get#15,a$:t=peek(i):get#15,a$:s=peek(i)
  29. 29 close 2:print#15,"u;":open 2,8,2,"#3":gosub 49:print#15,"b-p";2;0
  30. 30 print#2,dc$;
  31. 31 print#15,"m-w" chr$(6) chr$(0) chr$(2) chr$(t) chr$(s)
  32. 32 print#15,"m-e" chr$(0) chr$(6):close 2
  33. 33 print#15,"m-r" chr$(10) k$ chr$(2)
  34. 34 get#15,a$:l=peek(i):get#15,a$:h=peek(i)
  35. 35 print#15,"m-r" chr$(1) chr$(3) chr$(1)
  36. 36 get#15,a$:bytes=peek(i)-1
  37. 37 close 15
  38. 38 print "[151]file type: ";
  39. 39 if ty$="p" then print "program"
  40. 40 if ty$="s" then print "sequential"
  41. 41 if ty$="u" then print "user"
  42. 42 print "[151]blocks:" h*256+l
  43. 43 print "[151]bytes:" (h*256+l-1)*254+bytes-1
  44. 44 if ty$<>"p" then 46
  45. 45 print "[151]start address:"sh*256+sl
  46. 46 print "[151]starting track:"t
  47. 47 print "[151]starting sector:"s:gosub100
  48. 48 poke 198,0:wait 198,1:goto 54
  49. 49 input#15,e,e$,et,es:if e<20 then return
  50. 50 close 2:close 15
  51. 51 print "disk error"
  52. 52 print e,e$,et;es
  53. 53 ti$="000000":wait 161,1:run
  54. 54 print "[147]"
  55. 55 print"   vitals 1541 has been released to the public domain as freeware";
  56. 56 print".a donation of $1,5 or 10 would gladly be  accepted!"
  57. 57 print "      support the freeware concept!"
  58. 58 print tab(14)"will corley"
  59. 59 print tab(11)"7551 twilight dr."
  60. 60 print tab(13)"sacramento,ca"
  61. 61 print tab(17)"95822"
  62. 62 ti$="000000":wait 161,1:run
  63. 63 dc$="":y=49152:for x=1 to 184:read a:dc$=dc$+chr$(a):next:return
  64. 64 data 169,0,133,10,133,11,169,176,133,0
  65. 65 data 165,0,48,252,169,128,133,0,165,0
  66. 66 data 48,252,230,10,208,2,230,11,173,0
  67. 67 data 3,208,1,96,133,6,173,1,3,133
  68. 68 data 7,24,144,218
  69. 100 rem *******************************
  70. 101 rem *  improved by zeitgeist for  *
  71. 102 rem *    da ql mag publication    *
  72. 103 rem *******************************
  73. 104 d=sh*256+sl
  74. 105 z$="":b=16:forg=0to0:d=d/b:h=(d-int(d))*b:z$=chr$(55+h+7*(h<10))+z$
  75. 106 g=-d:next:print"[151]hex-anfang : $"z$:return
  76.